//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Brothers Osborne','Sandy Amphitheater','Sandy, UT','Sunday','5/19/2024','7:00 PM','6115521','Brothers-Osborne-5-19-2024'],['Old Crow Medicine Show','Sandy Amphitheater','Sandy, UT','Thursday','6/20/2024','7:00 PM','6303446','Old-Crow-Medicine-Show-6-20-2024'],['The Magic of Queen','Sandy Amphitheater','Sandy, UT','Saturday','6/29/2024','7:30 PM','6365058','The-Magic-of-Queen-6-29-2024'],['Andrew Bird & Nickel Creek','Sandy Amphitheater','Sandy, UT','Wednesday','7/10/2024','6:00 PM','6241104','Andrew-Bird---Nickel-Creek-7-10-2024'],['Direct From Sweden - The Music of ABBA','Sandy Amphitheater','Sandy, UT','Thursday','7/11/2024','7:30 PM','6387073','Direct-From-Sweden---The-Music-of-ABBA-7-11-2024'],['The Decemberists','Sandy Amphitheater','Sandy, UT','Wednesday','7/24/2024','7:00 PM','6252040','The-Decemberists-7-24-2024'],['Norah Jones','Sandy Amphitheater','Sandy, UT','Thursday','7/25/2024','7:00 PM','6281404','Norah-Jones-7-25-2024'],['Air Supply','Sandy Amphitheater','Sandy, UT','Thursday','8/1/2024','7:30 PM','6305503','Air-Supply-8-1-2024'],['Koe Wetzel','Sandy Amphitheater','Sandy, UT','Friday','8/9/2024','6:30 PM','6353690','Koe-Wetzel-8-9-2024'],['Hotel California - A Tribute to The Eagles','Sandy Amphitheater','Sandy, UT','Saturday','8/10/2024','7:30 PM','6334493','Hotel-California---A-Tribute-to-The-Eagles-8-10-2024'],['Walker Hayes','Sandy Amphitheater','Sandy, UT','Wednesday','8/14/2024','7:00 PM','6365025','Walker-Hayes-8-14-2024'],['Howard Jones & ABC','Sandy Amphitheater','Sandy, UT','Saturday','8/17/2024','6:00 PM','6402943','Howard-Jones---ABC-8-17-2024'],['The Piano Guys','Sandy Amphitheater','Sandy, UT','Thursday','9/5/2024','7:30 PM','6012068','The-Piano-Guys-9-5-2024'],['The Piano Guys','Sandy Amphitheater','Sandy, UT','Friday','9/6/2024','7:30 PM','6012069','The-Piano-Guys-9-6-2024'],['The Piano Guys','Sandy Amphitheater','Sandy, UT','Saturday','9/7/2024','3:00 PM','6012078','The-Piano-Guys-9-7-2024'],['The Piano Guys','Sandy Amphitheater','Sandy, UT','Saturday','9/7/2024','7:30 PM','6012070','The-Piano-Guys-9-7-2024'],['The National Parks','Sandy Amphitheater','Sandy, UT','Saturday','9/14/2024','7:00 PM','6414817','The-National-Parks-9-14-2024']],'Sandy Amphitheater','http://www.ticketnetwork.com/ticket/Sandy-Amphitheater-events.aspx');